
CC = gcc
APP = app
CFLAG = -Wall -O0 -g
RM = rm
DIRS = src user demo
OBJ = obj
DEMO = demo

.PHONY : all $(DIRS)

export CC CFLAG OBJ DEMO APP

all :  $(DIRS)

$(DIRS): 
	make -C $@

clear :
	$(RM) ./$(OBJ)/*.o
	$(RM)  ./$(DEMO)/$(APP)
